home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_gen_conveyor.cog < prev    next >
Text File  |  1999-11-15  |  972b  |  44 lines

  1. # Jones 3D Cog Script
  2. #
  3. # gen_Conveyor.cog
  4. #
  5. # generic conveyor belt script
  6. #
  7. # This script will control 1-8 conveyor belts moving in the same direction
  8. # and with the same velocity.  The conveyors run continuously.
  9. #
  10. # [IS]
  11. #
  12. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  13. # ========================================================================================
  14.  
  15. symbols
  16.     message    startup
  17.  
  18.     vector    vec0            desc=conveyor_direction
  19.     float        speed=2.0    desc=conveyor_speed
  20.  
  21.     surface    convey0        nolink
  22.     surface    convey1        nolink
  23.     surface    convey2        nolink
  24.     surface    convey3        nolink
  25.     surface    convey4        nolink
  26.     surface    convey5        nolink
  27.     surface    convey6        nolink
  28.     surface    convey7        nolink
  29.  
  30.     int        cnt            local
  31. end
  32.  
  33. # ========================================================================================
  34.  
  35. code
  36. startup:
  37.     for (cnt = 0; cnt<=7; cnt=cnt+1)
  38.     {
  39.         if (convey0[cnt] >= 0) SlideWall(convey0[cnt], vec0, speed);
  40.     }
  41.     return;
  42. end
  43.  
  44.